package bigbeard.tools.net.api;
/**
 * @author bigbeard on 2022-09-29
 */

public interface StateChangeCallback {
    /**
     * 状态变化
     *
     * @param key   客户端编号
     * @param state 状态值
     * @param info  描述
     */
    void notifyStateChange(String key, int state, String info);

    int CLIENT_OPENED = 2001;
    int CLIENT_CLOSE = 2002;
    int CLIENT_HEART_LAST = 2003;
    int CLIENT_ERROR = 2101;
    int SERVER_OPEN = 1001;
    int SERVER_CLOSE = 1002;
    int SERVER_ERROR = 1101;

}
